/*
 * client_meta_cache.h
 *
 *  Created on: Dec 22, 2012
 *      Author: duoln
 */

#ifndef CLIENT_META_CACHE_H_
#define CLIENT_META_CACHE_H_

typedef struct _meta_cache_ MetaCache;

MetaCache* meta_cache_init();

void meta_cache_destory(MetaCache* cache);

Status meta_cache_flush(MetaCache* cache, const char* name_space);

MetaFile* meta_cache_get_meta_file(MetaCache* cache, const char* name_space);

Status meta_cache_get_meta_chunks(MetaCache* cache, const char* name_space, int64_t start, int64_t end, /*out*/List* mchunks);

#endif /* CLIENT_META_CACHE_H_ */
